package com.ypf.delaycancelorder.mapper;


import com.ypf.delaycancelorder.entity.Order;

import java.util.Date;

public interface OrderMapper {
    /**
     * 插入一条新订单
     * @param order
     * @return
     */
    Integer insertOrder(Order order);

    /**
     * 修改订单
     * @param orderNo
     * @return
     */
    Integer updateByOrderNo(String orderNo, Integer status, Date gmtModified);

    /**
     * 根据订单id 查找订单
     * @param orderNo
     * @return
     */
    Order findByOrderNo(String orderNo);
}
